package com.linkoog.devtools.project_manager.action;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.options.ShowSettingsUtil;
import com.intellij.openapi.project.Project;
import com.linkoog.devtools.project_manager.settings.ProjectManagerConfigurable;
import org.jetbrains.annotations.NotNull;

/**
 *  显示 ProjectSwither 的配置面板
 */
public class ShowProjectManagerSettingAction extends AnAction {


    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        Project project = getEventProject(e);
        if (project != null) {
            ShowSettingsUtil.getInstance().showSettingsDialog(project, ProjectManagerConfigurable.class);
        }
    }
}
